export default {
    render(h){
        //获取path对应的那个component
        //let compontent = null;
        // this.$router.$options.routes.forEach(route=>{
        //     if(route.path === this.$router.current){
        //         compontent = route.component;
        //     }
        // })
        const {routeMap,current} = this.$router;
        const compontent = routeMap[current].component || null;
        return h(compontent)
    }
}